<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org"  xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<meta charset="utf-8">
<head th:include="mall/advert/include::header"></head>
<body class="gray-bg">
	<div class="wrapper wrapper-content animated fadeInRight">
		<div class="row">
			<div class="col-sm-12">
				<div class="ibox float-e-margins">
					<div class="ibox-title">
						<h5></h5>
					</div>
					<div class="ibox-content">
						<form class="form-horizontal m-t" id="signupForm">

							<input type="hidden" name="centreId" th:value="${centreId}" th:if="${flag} == '1'">

							<input type="hidden" name="teamId" th:value="${teamId}" th:if="${flag == '1' and teamFlag == '1'}">
							<div class="form-group" th:if="${flag == '1' and teamFlag == '0'}">
								<label class="col-sm-3 control-label">门店:</label>
								<div class="col-sm-8">
									<select name="teamId" class="form-control" type="text">
										<option value="">--请选择--</option>
										<option th:each="item: ${teamList}" th:text="${item.tXiaoqu}" th:value="${item.teamid}"></option>
									</select>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">打印机类型(型号):</label>
								<div class="col-sm-8">
									<label class="radio-inline">
										<input type="radio" name="printerType" value="1" checked/>飞鹅云
									</label>
									<label class="radio-inline">
										<input type="radio" name="printerType" value="2"/>芯烨XP-T58H
									</label>
									<label class="radio-inline">
										<input type="radio" name="printerType" value="3"/>佳博GP-TD2270
									</label>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">打印场景:</label>
								<div class="col-sm-8">
									<label class="radio-inline">
										<input type="radio" name="scene" value="0" checked/>小程序外卖订单
									</label>
									<label class="radio-inline">
										<input type="radio" name="scene" value="1"/>收银系统
									</label>
									<label class="radio-inline">
										<input type="radio" name="scene" value="2"/>小程序普通订单
									</label>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">打印机用户:</label>
								<div class="col-sm-8">
									<input id="printerUser" name="printerUser" class="form-control" type="text">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">打印机key:</label>
								<div class="col-sm-8">
									<input id="printerKey" name="printerKey" class="form-control" type="text">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">编号:</label>
								<div class="col-sm-8">
									<input id="sn" name="sn" class="form-control" type="text">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">识别码:</label>
								<div class="col-sm-8">
									<input id="code" name="code" class="form-control" type="text">
								</div>
							</div>

							<div class="form-group text-center">
								<div class="col-sm-8 col-sm-offset-2">
									<button type="submit" class="btn btn-primary"><i class="fa fa-check"></i>提交</button>
									<div class="btn btn-danger" onclick="closeDow()"><i class="fa fa-remove"></i> 关闭</div>
								</div>
							</div>
						</form>
					</div>
				</div>
			</div>
		</div>
	</div>
	<div th:include="mall/advert/include::footer"></div>
	<script type="text/javascript" src="/js/appjs/commander/printer/add.js">
	</script>
	<script type="text/javascript">
		function closeDow() {
			var index = parent.layer.getFrameIndex(window.name); // 获取窗口索引
			parent.layer.close(index);
		}
	</script>
</body>

</html>
